<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 * $Log$
 *
 */
set_time_limit(0);
include($_SERVER["DOCUMENT_ROOT"]."/common/AllWeb.inc.php");
$arrWeb = array();
foreach($_arrWeb as $key => $arrV){
	$ch = curl_init ();
	curl_setopt($ch,CURLOPT_URL, "http://secure.".$arrV[0]."/k_admin/Account/CompareSuppleWagerList.php?AllPowers=Y");
	curl_setopt ($ch, CURLOPT_VERBOSE, 1);
	curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt ($ch, CURLOPT_TIMEOUT, 30);
	curl_setopt ($ch, CURLOPT_HEADER, 0);
	curl_setopt ($ch, CURLOPT_HTTPHEADER, array(
		"Accept:image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/msword, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/x-shockwave-flash, */*",
		"User-Agent:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)",
		"Host:secure.".$arrV[0],
		"Connection:Keep-Alive"));
	$strCont = curl_exec($ch);
	curl_close($ch);
	preg_match("/<!--Content Start\/\/-->(.+)<!--Content End\/\/-->/s", $strCont, $arrCon);
	print $arrV[0]."<br /><hr /><br />\n";
	print $arrCon[1]."<br /><br />\n";
	flush();
}
?>